package com.lkx.farmershop.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

import java.io.Serializable;

/**
 * (TagTuan)实体类
 *
 * @author makejava
 * @since 2025-01-25 20:27:28
 */
@Getter
@Setter
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TagTuan implements Serializable {
    private static final long serialVersionUID = -59129553145209084L;
/**
     * 唯一id
     */
    @TableId
    private Long id;
    /**
     * 标签id
     */
    private Long tagId;
/**
     * 组团id
     */
    private Long tuanId;

    /**
     * 只有在执行搜索、按标签获取组团时用到，当组团标题或详情包含此标签名称时，此字段为true，默认为false.
     */
    private Boolean fakeHide = false;

    public TagTuan(Long tagId, Long tuanId) {
        this.tagId = tagId;
        this.tuanId = tuanId;
    }

    public TagTuan(Long tagId, Long tuanId, Boolean fakeHide) {
        this.tuanId = tuanId;
        this.tagId = tagId;
        this.fakeHide = fakeHide;
    }
}

